import Vue from 'vue'
import Router from 'vue-router'
import MyGrade from '@/components/my-music/MyGrade'
import index from '@/view/index/index'
import MusicList from "../components/category/MusicList";
import Play from '@/view/Play'
import indeximg from '@/view/indeximg'
import RchartRank from '@/view/EchartRank'
/*import list from "../components/cateage/list";
import musicDescription from "../components/cateage/musicDescription"*/
import Login from '@/view/Login'
import registry from '@/view/registry'
import PersonalCenter from '@/components/my-music/PersonalCenter'
import musicDescription from "../components/category/musicDescription"
import Audio from "../components/audio/Audio";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/MyGrade/:grade/:isVip/:userId',
      name: 'MyGrade',
      component: MyGrade,
      meta: {
        keepAlive: true
      }
    },
    {
      path: '/index',
      name: 'index',
      component: index
    },
    {
      path: '/MusicList',
      name: 'MusicList',
      component: MusicList
    },
    {
      path: '/Play',
      name: 'Play',
      component: Play
    },
    {
      path: '/',
      name: 'indeximg',
      component: indeximg
    },
    {
      path: '/indeximg',
      name: 'indeximg',
      component: indeximg
    },
    {
      path: '/EchartRank',
      name: 'EchartRank',
      component: RchartRank
    },
    {
      path: '/Login',
      name: 'Login',
      component: RchartRank
    },{
      path: '/registry',
      name: 'registry',
      component: registry
    },
    {
      path: '/PersonalCenter',
      name: 'PersonalCenter',
      component: PersonalCenter
    },
    {
      path: '/musicDescription/:id',
      name: 'musicDescription',
      component: musicDescription
    },
    {
      path: '/audio',
      name: 'audio',
      component: Audio
    },

  ]
})
